﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace CarExam
{
    public class GetQuestion
    {
        /// <summary>
        /// 读取题库中的一行
        /// </summary>
        /// <param name="dt">要读取的题库</param>
        /// <param name="index">索引</param>
        /// <returns></returns>
        public static DataRow Get(DataTable dt, int index)
        {
            if (dt!=null && dt.Rows.Count == 0) return null;
            else
                return dt.Rows[index];
            return null;
        }

        
    }
}
